using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace Fieldbook.Testwebsite
{
    public class FieldbookPage : System.Web.UI.Page
    {
        virtual protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected override void InitializeCulture()
        {
            Culture = "en-US";
            UICulture = "en-US";
            base.InitializeCulture();
        }

        public void ReddirectNonActiveSession()
        {
            if (Session["userID"] == null)
            {
                FormsAuthentication.SignOut();
                FormsAuthentication.RedirectToLoginPage();
                Response.End();
            }
        }

    }
}
